<div id = "infos" class="half-size pull-left border-right">
	<div class="input-group input-group-lg">
			<span class="input-group-addon">
				<label for="pseudo">Pseudo</label>
			</span>
		<span class="form-control"><?php if(isset($row['pseudo'])) { echo $row['pseudo']; } ?></span>
	</div>
	<br />
	<div class="input-group input-group-lg">
			<span class="input-group-addon">
				<label for="nom">Nom</label>
			</span>
		<span class="form-control"><?php if(isset($row['lastName'])) { echo $row['lastName']; } ?></span>
	</div>
	<br />
	<div class="input-group input-group-lg">
			<span class="input-group-addon">
				<label for="prenom">Prénom</label>
			</span>
		<span class="form-control"><?php if(isset($row['firstName'])) { echo $row['firstName']; } ?></span>
	</div>
	<br />
	<div class="input-group input-group-lg">
			<span class="input-group-addon">
				<label for="email">E-mail</label>
			</span>
		<span class="form-control"><?php if(isset($row['email'])) { echo $row['email']; } ?></span>
	</div>
	<br />
	<a href = "#informations-edit" onclick ="replace('editInfos','infos');" class="btn btn-primary btn-lg btn-block">Editer</a>
	<?php if(isset($error_info)) { ?>
	<br />
	<div class="alert alert-danger center-block text-center">
		<?= $error_info ?> déja utilisé !
	</div>
	<?php }
	if(isset($error_pwd)) { ?>
	<br />
	<div class="alert alert-danger center-block text-center half-size">
		<?= $error_pwd ?>
	</div>
	<?php } ?>
</div>
<form id = "editInfos" action="compte.php?page=information" method="post" class="half-size pull-left border-right" style ="display:none;">
	<div class="input-group input-group-lg">
			<span class="input-group-addon">
				<label for="pseudo">Pseudo</label>
			</span>
		<input type="text" name="pseudo" id="pseudo" value="<?php if(isset($row['pseudo'])) { echo $row['pseudo']; } ?>" class="form-control" />
	</div>
	<br />
	<div class="input-group input-group-lg">
			<span class="input-group-addon">
				<label for="pwd">Password</label>
			</span>
		<input type="password" name="password" id="pwd" value="" class="form-control" />
	</div>
	<br />
	<div class="input-group input-group-lg">
			<span class="input-group-addon">
				<label for="pwd2">Confirm.</label>
			</span>
		<input type="password" name="password2" id="pwd2" value="" class="form-control" />
	</div>
	<br />
	<div class="input-group input-group-lg">
			<span class="input-group-addon">
				<label for="nom">Nom</label>
			</span>
		<input type="text" name="nom" id="nom" value="<?php if(isset($row['lastName'])) { echo $row['lastName']; } ?>" class="form-control" />
	</div>
	<br />
	<div class="input-group input-group-lg">
			<span class="input-group-addon">
				<label for="prenom">Prénom</label>
			</span>
		<input type="text" name="prenom" id="prenom" value="<?php if(isset($row['firstName'])) { echo $row['firstName']; } ?>" class="form-control" />
	</div>
	<br />
	<div class="input-group input-group-lg">
			<span class="input-group-addon">
				<label for="email">E-mail</label>
			</span>
		<input type="email" name="email" id="email" value="<?php if(isset($row['email'])) { echo $row['email']; } ?>" class="form-control" />
	</div>
	<br />
	<button type="submit" name="submit-info" class="btn btn-success btn-lg btn-block">Envoyer</button>
</form>
<div class="pull-left half-size border-left">
	<div class="clearfix">
		<div class="pull-left">
			<?php if(isset($row['link']) && $row['imgStatus'] != 3) { ?>
					<img src="<?= imgLink($row['link'])."?".time() ?>" class="img-rounded" width="202px" height="202px"/>
			<?php } else { ?>
					<img src="<?= imgLink("img/avatar/default.png") ?>" class="img-rounded" width="202px" height="202px" />
			<?php }?>
		</div>
		<div class="pull-left info-access">
			<br />
			<strong>Grade :</strong> <br />
			<?php echo($tab_roles[$row['roleID']]); ?> <br />
			<br />
			<strong>Statut :</strong> <br />
			<?php echo($tab_status[$row['statusID']]); ?> <br />
			<br />
			<strong>Date d'inscription :</strong> <br />
			<?php if(isset($row['hireDate'])) echo strftime("%d %B %Y",strtotime($row['hireDate'])); ?>
		</div>
	</div>
	<h4 class="change-img">Modifier l'image :</h4>
	<form action="compte.php?page=information" method="post" enctype="multipart/form-data" class="change-img">
		<div class="form-group inline-form">
			<label for="upload">Image en local :<small> (inférieur à 5 Mio)</small></label>
			<input type="file" name="avatar" id="upload" required/>
		</div>
		<button type="submit" name="submit-image-upload" class="btn btn-default change-img-btn pull-right ">OK</button>
	</form>
	<form action="compte.php?page=information" method="post" class="change-img">
		<div class="form-group inline-form">
			<label for="url">Image sur internet :</label> <br />
			<input type="url" name="avatar" class="form-control" id="url" required/>
		</div>
		<button type="submit" name="submit-image-url" class="btn btn-default pull-right ">OK</button>
	</form>
</div>